import Vue from 'vue'
import App from './App.vue'
//导入router路由文件
import router from '@/router/index'
//导入flex布局模块
import 'lib-flexible'

import {store} from './store/index'
//导入Vant2组件
import { Tabbar, TabbarItem, Icon, Button, Swipe, SwipeItem, Card } from 'vant';
Vue.use(Tabbar).use(TabbarItem).use(Icon).use(Button).use(Swipe).use(SwipeItem).use(Card)

import { GoodsAction, GoodsActionIcon, GoodsActionButton, Sku, Toast } from 'vant';
Vue.use(GoodsAction).use(GoodsActionIcon).use(GoodsActionButton).use(Sku);

import {SwipeCell,Checkbox,Stepper,Divider,SubmitBar  } from 'vant'
Vue.use(SwipeCell).use(Checkbox).use(Stepper).use(Divider).use(SubmitBar )

Vue.config.productionTip = false
//把toast挂在全局
Vue.prototype.$Toast = Toast
// Vue.prototype.$store = store
new Vue({
  //挂在路由
  router,
  store,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
